package jun.home.dailycost.service.impl;

import java.util.List;

import jun.home.dailycost.dao.CategoryDao;
import jun.home.dailycost.domain.Category;
import jun.home.dailycost.service.CategoryService;

public class CategoryServiceImpl implements CategoryService {
	
	CategoryDao categoryDao;
	
	public void setCategoryDao(CategoryDao categoryDao) {
		this.categoryDao = categoryDao;
	}

	@Override
	public void storeCategory(Category cat) {
		categoryDao.store(cat);
	}

	@Override
	public void deleteCategory(Category cat) {
		// TODO Auto-generated method stub

	}

	@Override
	public void deleteCategoryById(int id) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<Category> selectAll() {
		return categoryDao.selectAll();
	}

	@Override
	public Category selectById(int cid) {
		return categoryDao.selectByCid(cid);
	}

}
